package com.xhwy.service;

import com.xhwy.entity.People;
import com.xhwy.repository.PeopleRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author : TheBugMaker
 * date    ：2021-11-12 16:18
 */
@Service
@Slf4j
public class PeopleService {

    @Autowired
    private PeopleRepository peopleRepository;

    public void addPeople(People people){
        peopleRepository.save(people);
    }
}
